<div class="block_left">
	<div class="block_khung goc5">
		<div class="block_title goc3">
			<span class="toggleBlock db-up" id="block_1">&nbsp;</span> Câu lạc bộ
		</div>
		<div class="block_content" id="block_1">
			<ul class="leftMenu">
				<li><a href="<?php echo $this->baseUrl('club/admin-clb/index'); ?>" class="icon-16-new">Danh sách câu lạc bộ</a></li>
				<li><a href="<?php echo $this->baseUrl('club/admin-event/add'); ?>" class="icon-16-new">Thêm mới nội Event</a></li>
				<li><a href="<?php echo $this->baseUrl('club/admin-noidung/add'); ?>" class="icon-16-new">Thêm mới nội dung sinh hoạt</a></li>
				<li><a href="<?php echo $this->baseUrl('club/admin-clbkhachhang/index'); ?>" class="icon-16-new">Thu phí sinh hoạt</a></li>
				
			</ul>
		</div>
	</div>
</div>
<div class="block_left">
	<div class="block_khung goc5">
		<div class="block_title goc3">
			<span class="toggleBlock db-up" id="block_1">&nbsp;</span> Thêm mới
		</div>
		<div class="block_content" id="block_1">
			<ul class="leftMenu">
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-khcn/add/tn/1'); ?>" class="icon-16-new" id="khachhang_admin-khcn" data="1">Cá nhân tiềm năng</a></li>
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-khtc/add/tn/1'); ?>" class="icon-16-new" id="khachhang_admin-khtc" data="1">Tổ chức tiềm năng</a></li>
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-khcn/add/tn/0'); ?>" class="icon-16-new" id="khachhang_admin-khcn" data="0">Cá nhân không theo dõi</a></li>
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-khtc/add/tn/0'); ?>" class="icon-16-new" id="khachhang_admin-khtc" data="0">Tổ chức không theo dõi</a></li>
				<!-- <li><a href="<?php echo $this->baseUrl('khachhang/admin-dmll/add'); ?>" class="icon-16-new" id="khachhang_admin-dmll" action="add">Thêm đầu mối liên lạc</a></li> -->
			</ul>
		</div>
	</div>
</div>
<div class="block_left">
	<div class="block_khung goc5">
		<div class="block_title goc3">
			<span class="toggleBlock db-up" id="block_2">&nbsp;</span> Xem
		</div>
		<div class="block_content" id="block_2">
			<ul class="leftMenu">
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-kh/index'); ?>" class="icon-16-back-user" id="khachhang_admin-kh">Danh sách khách hàng</a></li>
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-item/index/tn/1'); ?>" class="icon-16-newuser" id="khachhang_admin-item" data="1">Khách hàng tiềm năng</a></li>
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-item/index/tn/0'); ?>" class="icon-16-user-dd" id="khachhang_admin-item" data="0">Khách hàng không theo dõi</a></li>
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-taiquanly/index'); ?>" class="icon-16-user-dd" id="khachhang_admin-item" data="0">Khách hàng tái quản lý</a></li>
				<li><a href="<?php echo $this->baseUrl('khachhang/admin-delete/index'); ?>" class="icon-16-user-dd" id="khachhang_admin-item" data="0">Khách hàng đã xóa</a></li>
				<!-- <li><a href="<?php // echo $this->baseUrl('khachhang/admin-dmll/index'); ?>" class="icon-16-contacts" id="khachhang_admin-dmll" action="index">Đầu mối liên lạc</a></li> -->
			</ul>
		</div>
	</div>
</div>

<div class="block_left">
	<div class="block_khung goc5">
		<div class="block_title goc3">
			<span class="toggleBlock db-up" id="block_3">&nbsp;</span> Hợp đồng
		</div>
		<div class="block_content" id="block_3">
			<ul class="leftMenu">
				<li><a href="<?php echo $this->baseUrl('hopdong/admin-item/index'); ?>" class="icon-16-category" id="hopdong_admin-item">Danh sách hợp đồng</a></li>
				<li><a href="<?php echo $this->baseUrl('hopdong/admin-khuyenmai/index'); ?>" class="icon-16-money" id="hopdong_admin-khuyenmai">Chương trình khuyến mại</a></li>
			</ul>
		</div>
	</div>
</div>

<script type="text/javascript">
	<?php 
	if(isset($this->arrParam['tn'])){
	?>
	var tn = <?php echo $this->arrParam['tn'];?>;
	<?php
	} else {
	?>
	var tn = 0;
	<?php
	} 
	?>
	var selected = '.leftMenu #<?php echo $this->arrParam['module'] . '_' . $this->arrParam['controller'];?>';
	if($(selected).size() > 1){
		$(selected).each(function(index){
			if($(this).attr('data') == tn){
				$(this).addClass('active');
			}
		});
	} else {
		$(selected).addClass('active');
	}
</script>
